﻿//using System;
//using System.Collections.Generic;
//using System.Linq;
//using System.Web;
//using GBFinance.DAL;
//using HiLand.Utility.Pattern;
//using GBFinance.Entity;
//using HiLand.Utility.Paging;

//namespace GBFinance.BLL
//{
//    public class LoanBasicInfoBLL
//    {
//        private static LoanBasicInfoDAL dal = null;
//        private static LoanBasicInfoDAL DAL
//        {
//            get
//            {
//                if (dal == null)
//                {
//                    dal = Singleton<LoanBasicInfoDAL>.Instance;
//                }

//                return dal;
//            }
//        }

//        private static LoanBasicInfoDAL dalSave = null;
//        private static LoanBasicInfoDAL DALSave
//        {
//            get
//            {
//                if (dalSave == null)
//                {
//                    dalSave = DAL;
//                }

//                return dalSave;
//            }
//        }

//        public static bool Create(LoanBasicInfoEntity entity)
//        {
//            if (entity.LoanGuid == Guid.Empty)
//            {
//                entity.LoanGuid = Guid.NewGuid();
//            }
//            return DALSave.Create(entity);
//        }

//        public static bool Update(LoanBasicInfoEntity entity)
//        {
//            return DALSave.Update(entity);
//        }

//        public static bool Delete(LoanBasicInfoEntity entity)
//        {
//            return DALSave.Delete(entity);
//        }

//        public static LoanBasicInfoEntity Get(Guid LoanGuid)
//        {
//            return DALSave.Get(LoanGuid);
//        }

//        /// <summary>
//        /// 获取新闻类别列表
//        /// </summary>
//        /// <param name="onlyDisplayUsable"></param>
//        /// <param name="whereClause"></param>
//        /// <returns></returns>
//        public static List<LoanBasicInfoEntity> GetList(string whereClause)
//        {
//            return DALSave.GetList(whereClause);
//        }

//        public static PagedEntityCollection<LoanBasicInfoEntity> GetPagedCollection(int startIndex, int pageSize, string whereClause, string orderClause)
//        {
//            return DALSave.GetPagedCollection(startIndex, pageSize, whereClause, orderClause);
//        }
//    }
//}